package com.ryskoo.catering.productattrvalue.domain;

import com.ryskoo.framework.core.bean.BasicPO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "cater_product_attr_value")
public class ProductAttrValuePO extends BasicPO {
    /* 所属的属性uuid */
    @Column(name = "attr_uuid", columnDefinition = "char", length = 32)
    private String attrUuid;
    /* 模板属性值uuid */
    @Column(name = "template_attr_value_uuid", columnDefinition = "char", length = 32)
    private String templateAttrValueUuid;
    /* 属性值 */
    @Column(name = "value", columnDefinition = "varchar", length = 20)
    private String value;

    /* 如果是规格属性值，就会有价格 */
    @Column(name = "price", columnDefinition = "decimal", length = 11, precision = 2)
    private double price;
    /* 排序 */
    @Column(name = "position", columnDefinition = "int")
    private Integer position;

    public String getAttrUuid() {
        return attrUuid;
    }

    public void setAttrUuid(String attrUuid) {
        this.attrUuid = attrUuid;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Integer getPosition() {
        return position;
    }

    public void setPosition(Integer position) {
        this.position = position;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getTemplateAttrValueUuid() {
        return templateAttrValueUuid;
    }

    public void setTemplateAttrValueUuid(String templateAttrValueUuid) {
        this.templateAttrValueUuid = templateAttrValueUuid;
    }
}
